<?php

namespace app\admin\controller\user;

use app\common\controller\AdminController;
use app\common\service\user\UserSign;
use EasyAdmin\annotation\ControllerAnnotation;
use EasyAdmin\annotation\NodeAnotation;
use think\App;

/**
 * @ControllerAnnotation(title="user_sign_deploy")
 */
class SignDeploy extends AdminController
{

    use \app\admin\traits\Curd;

    public function __construct(App $app)
    {
        parent::__construct($app);

        $this->model = new \app\admin\model\user\UserSignDeploy();
        
        $this->assign('getIsStatusList', $this->model->getIsStatusList());

    }

    /**
     * Author:Yingbo Sun
     * 签到配置 列表
     * @return mixed|\think\response\Json
     */
    public function index()
    {
        if ($this->request->isAjax()) {
            if (input('selectFields')) {
                return $this->selectList();
            }
            list($page, $limit, $where) = $this->buildTableParames();
            $data = UserSign::list($page, $limit, $where);
            return json($data);
        }
        return $this->fetch();
    }

    
}